import { createRouter, createWebHistory } from "vue-router";
const routes = [
    { path: '/', alias: '/home', name: 'home', meta: {pageTitle:'云数零售'}, component: () => import('@/pages/home.vue') },
    { path: '/404', name: '404', component: () => import('@/pages/404.vue') },
    { path: '/:pathMatch(.*)*', redirect: '/404' },

]

const router =  createRouter({
    history: createWebHistory(),
    routes: routes,
})

export default router